#pragma once
//#include "datamanager.h"

#include "Algo_gui.h"
#include "..\plot\plot.h"
//#include "gangiaplotcurve.h"

#include "FeedsBase.h"

class FeedFrameHandler :	public FeedFrame, public FeedsBase
{
public:
	FeedFrameHandler(wxWindow *parent, int id,int Feedbacks,int SampleFreq, int PlotSeconds);
	void SetClassification(int Class);
	void SetFeedback(float Feed[]);
	void SetTrigger(int Man,int AEnima, int HW);
	void StartDrawing(void);
	
	void RefreshUI(wxTimerEvent& Event);

	void Destr(void){FeedFrame::Destroy();};
	bool IsShown(){return FeedFrame::IsShown();};
	bool Hide(){return FeedFrame::Hide();};
	bool Show(bool show = true){return FeedFrame::Show(show);};
	
public:
	~FeedFrameHandler(void);

	void	OnResize(wxSizeEvent& event);

protected:
	
	DECLARE_EVENT_TABLE();
	
	double			OldTrigger ;
	int				FeedNumber,MySampleFreq;
//	DataManager		*pDataSplit;

	SignalClass	*pFeedbackCurve[MAX_FEEDS];
	Plot			*m_SigPlot;
	int				PlotLength;

	wxTimer			Timer;

public:
	
};

